The Object.defineProperty() method can also be used to add Getters and Setters:
JavaScript Getters and Setters
Perfect for creating counters: